import request from '@/utils/request'

export function getUser(data) {
  return request({
    url: '/api/UserInfo/GetList',
    method: 'post',
    data: data
  })
}

export function saveUser(data) {
  return request({
    url: '/api/UserInfo/Save',
    method: 'post',
    data: data
  })
}

export function delUser(data) {
  return request({
    url: '/api/UserInfo/Delete',
    method: 'post',
    data: data
  })
}

export function toggleValidUser(data) {
  return request({
    url: '/api/UserInfo/Valid',
    method: 'post',
    data: data
  })
}
export function GetById(data) {
  return request({
    url: '/api/UserInfo/GetById',
    method: 'post',
    data: data
  })
}
//保存身份策略配置里的方案选择
export function SaveCorrs(data) {
  return request({
    url: '/api/UserRole/SaveCorrs',
    method: 'post',
    data: data
  })
}
//获取身份策略配置里的方案选择
export function GetCorrList(data) {
  return request({
    url: '/api/UserRole/GetCorrList',
    method: 'post',
    data: data
  })
}
export function GetCoreMallList(data) {
  return request({
    url: '/api/UserInfo/GetCoreMallList',
    method: 'post',
    data: data
  })
}

export function WithdrawalSwitch(data) {
  return request({
    url: '/api/UserInfo/WithdrawalSwitch',
    method: 'post',
    data: data
  })
}